package effective_java.design_pattern.visitor;

/**
 * @author Verlet
 * @date 2023-10-05 01:46
 */
public class Dog implements Animal {
    @Override
    public void accept(Person person) {
        // 委托dog 调用
        person.feed(this);
        System.out.println("好好吃，汪汪汪！！！");
    }
}
